//
//  ViewController.m
//  differentIPhoneWithDifferentFont
//
//  Created by bigarto-mac1 on 2018/3/6.
//  Copyright © 2018年 bigarto-mac1. All rights reserved.
//

#import "ViewController.h"
#import "UIFont+ZHFont.h"

@interface ViewController ()

@property (nonatomic, strong) UILabel *label;

@end

@implementation ViewController

- (UILabel *)label {
    if (!_label) {
        _label = [[UILabel alloc] initWithFrame:CGRectMake(30, 100, 260, 70)];
        _label.backgroundColor = [UIColor cyanColor];
        _label.textColor = [UIColor yellowColor];
        _label.font = [UIFont systemFontOfSize:17];
        [self.view addSubview:_label];
    }
    return _label;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.view.backgroundColor = [UIColor whiteColor];
    self.label.text = @"不同机型不同字体大小";
}

@end
